home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / os2 / comm2211.zip / DEINSTL.CMD < prev    next >
OS/2 REXX Batch file  |  1992-08-12  |  919b  |  37 lines

  1. @echo off
  2. rem ****************************************************
  3. rem * Simple DE-Installation utility for beta drivers  *
  4. rem ****************************************************
  5.  
  6.  
  7. if "%1"=="" goto ERROR1
  8. if not exist %1\os2\com.sys goto ERROR2
  9.  
  10. :DOIT
  11. rename %1\os2\com.sys *.892
  12. rename %1\os2\mode.com *.892
  13. rename %1\os2\mdos\vcom.sys *.892
  14. rename %1\os2\mdos\winos2\system\comm.drv *.892
  15.  
  16. rename %1\os2\com.392 *.sys
  17. rename %1\os2\mode.392 *.com
  18. rename %1\os2\mdos\vcom.392 *.sys
  19. rename %1\os2\mdos\winos2\system\comm.392 *.drv
  20.  
  21. goto DONE
  22.  
  23. :ERROR1
  24. echo **** YOU MUST SUPPLY THE OS/2 DRIVE (I.E.  C:) ****
  25. goto DONE
  26.  
  27. :ERROR2
  28. if %2==99 goto DOIT
  29. echo **** COM.SYS not found...Did you supply the correct Drive? ****
  30. echo **** If you wish to Override, execute DEINSTL x: 99 where  ****
  31. echo **** x: is the correct drive letter                        ****
  32. goto DONE
  33.  
  34.  
  35. :DONE
  36. echo on
  37.